<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>数据操作</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script src="<%=basePath%>js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>js/jquery.uniform.js" type="text/javascript"></script>
    <link rel="stylesheet" href="<%=basePath%>css/uniform.default.css" type="text/css" media="screen">
    <link rel="stylesheet" href="<%=basePath%>css/addUpdate.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="<%=basePath%>css/slide.css" type="text/css" media="screen"/>
    <script type="text/javascript" charset="utf-8">
        $(function () {
            $("input, textarea, select, button").uniform();
        });
    </script>
    <style type="text/css" media="screen">
        #content {
            width: 300px;
        }
    </style>
</head>

<body>
<!-- Login -->
<div id="toppanel">
    <div class="tab">
        <ul class="login">
            <li class="left">&nbsp;</li>
            <li>欢迎您,管理员</li>
            <li class="sep">|</li>
            <li id="toggle">
                <a id="close" class="close" href="">退出</a>
            </li>
            <li class="right">&nbsp;</li>
        </ul>
    </div>
</div>

<div id="container">
    <div id="content" style="padding-top:100px;">
        <h1>数据操作</h1>
        <ul>
            <li>
                <form action="File!createExcelByMedicine.action" method="post">
                    <input type="submit" value="生成药物信息 备份记录"/>
                </form>
            </li>
            <li>
                <form action="File!recoverExcelByMedicine.action" method="post">
                    <label> 文件名：</label>
                    <label> <input type="file" name="excelFileName" size="25">
                </label><br/>
                    <label> <div class="alert info">还原前会清空数据，请先备份现有数据。</div></label>
                    <input type="submit" value="还原药物信息 "/>
                </form>
            </li>

            <li>
                <form action="Mysql!backupMysqlDatabase.action" method="post">
                    <input type="submit" value="备份数据库"/>
                </form>
            </li>

            <li>
                <form action="Mysql!resumeMysqlDatabase.action" method="post" >
                    <input type="submit" value="还原数据库"/>
                </form>
            </li>
        </ul>
    </div>
</div>
</body>
</html>